package com.dragon.cloud.zconf.client;

public interface ZConfClient {

    /**
     * get config by key.
     *
     * @param key
     *            fullPath: /zconf/product/listp , key: product/listp
     * @return ZConfNode
     * @throws ZConfException
     */
    ZConfNode getConfigByKey(String key) throws ZConfException;

    /**
     * set config
     * 
     * @param key
     *            fullPath: /zconf/product/listp , key: product/listp
     * @param value
     * @return boolean
     * @throws ZConfException
     */
    boolean setConfigValue(String key, String value) throws ZConfException;

}
